<?php
require_once "../vendor/autoload.php";

$html = file_get_contents("D:\\fbg_gd\\php_demo\\mpdf\\demo2\\demo2.html");
$stylesheet = file_get_contents("D:\\fbg_gd\\php_demo\\mpdf\\demo2\\demo2.css");
$mpdf = new \Mpdf\Mpdf(array(
    "mode"=>"zh-cn",
    "default_font_size"=>26
));
$mpdf->WriteHTML($stylesheet,1);
$mpdf->WriteHTML($html);
$mpdf->Output("D:\\fbg_gd\\php_demo\\mpdf\\demo2.pdf");